var dialog = document.querySelector('dialog');
var showModalButton = document.querySelector('.show-modal');
var notify = document.querySelector('#toast-notify');
if (! dialog.showModal) {
  dialogPolyfill.registerDialog(dialog);
}
showModalButton.addEventListener('click', function() {
  dialog.showModal();
});
dialog.querySelector('.close').addEventListener('click', function() {
  dialog.close();
});
